When switch
statements have large sets of case
clauses, it is usually an attempt to map two sets of data. A real map
structure would be more readable and maintainable, and should be used instead.
Exceptions
This rule ignores switch
es over Enum
s and empty, fall-through cases.